import Vue from 'vue/dist/vue.js'
import Router from 'vue-router'

Vue.use(Router)


const routes = [
 /*   {
        path: '/',
        component: () => import('@/views/Main.vue'),
        name: '',
        children: [{
            path: '',
            component: () => import('@/views/dashboard/Dashboard.vue'),
            meta: [],
        }, {
            path: 'reportUpload',
            component: () => import('@/views/report/ReportUpload.vue'),
            meta: ['报表管理', '报表上传配置']
        }, {
            path: 'reportDownload',
            component: () => import('@/views/report/ReportDownload.vue'),
            meta: ['报表管理', '报表下载']
        }, {
            path: 'dataSource',
            component: () => import('@/views/datasource/DataSource.vue'),
            meta: ['报表管理', '数据源管理']
        }, {
            path: 'ReprotData',
            component: () => import('@/views/report/ReprotData.vue'),
            meta: ['报表管理', '报表数据生成']
        }, {
            path: 'dictManager',
            component: () => import('@/views/report/dict-manage/DictManager.vue'),
            meta: ['字典管理', '字典配置']
        }, {
            path: 'reportManage',
            component: () => import('@/views/report/ReportManager.vue'),
            meta: ['报表管理', '报表管理']
        }, {
            path: 'reportStep',
            component: () => import('@/views/report/ReportStep.vue'),
            meta: ['报表管理', '报表进度']
        }, {
            path: 'dictSQLManager',
            component: () => import('@/views/report/dict-manage/DictSQLManager.vue'),
            meta: ['字典管理', '字典SQL配置']
        }]
    }*/

    {
        path: '/',
        component: () => import('@/views/Main.vue'),
        name: '',
        children: [{
            path: '',
            component: () => import('@/views/dashboard/Dashboard.vue'),
            meta: [],
        }]
    },{
        path: '/404',
        component: () => import('@/views/error/404.vue'),
        name:'404'
    }, {
        path: '/reportUpload',
        component: () => import('@/views/report/ReportUpload.vue'),
        meta: ['报表管理', '报表上传配置']
    }, {
        path: '/reportDownload',
        component: () => import('@/views/report/ReportDownload.vue'),
        meta: ['报表管理', '报表下载']
    }, {
        path: '/dataSource',
        component: () => import('@/views/datasource/DataSource.vue'),
        meta: ['报表管理', '数据源管理']
    }, {
        path: '/tempUpload',
        component: () => import('@/views/report/TempUpload.vue'),
        meta: ['报表管理', '模板上传']
    }, {
        path: '/ReprotData',
        component: () => import('@/views/report/ReprotData.vue'),
        meta: ['报表管理', '报表数据生成']
    }, {
        path: '/dictManager',
        component: () => import('@/views/report/dict-manage/DictManager.vue'),
        meta: ['字典管理', '字典配置']
    }, {
        path: '/reportManage',
        component: () => import('@/views/report/ReportManager.vue'),
        meta: ['报表管理', '报表管理']
    }, {
        path: '/reportStep',
        component: () => import('@/views/report/ReportStep.vue'),
        meta: ['报表管理', '报表进度']
    }, {
        path: '/dictSQLManager',
        component: () => import('@/views/report/dict-manage/DictSQLManager.vue'),
        meta: ['字典管理', '字典SQL配置']
    }
]

export default new Router({
    routes
})
